package com.atguigu.spzx.manager.properties;

import io.minio.MinioClient;

/**
 * title:
 * author: zgl
 * date: 2023/12/29
 * description：获取minion客户端对象
 */
public class MinioUtil {
    private static MinioClient minioClient;

    static {
        minioClient = MinioClient.builder()
                .endpoint(SpzxMinioProperties.ENDPOINT)
                .credentials(SpzxMinioProperties.ACCESS_KEY, SpzxMinioProperties.SECRET_KEY)
                .build();
    }

    public static MinioClient getMinioClient() {
        return minioClient;
    }
}
